package org.swift.mashup.engine.deployment;

import java.util.HashMap;
import java.util.Map;

import javax.xml.namespace.QName;

import org.swift.commons.deployer.framework.axis2.AxisOperationExposure;

public class MashupHttpFacade implements AxisOperationExposure {
	public String getSoapInputAction(String serviceName,
		QName operationTypeName) {
		return operationTypeName.getLocalPart();
	}

	public Map<HttpMethod, String> getSupportedRestMethods(
		QName operationTypeName) {
		Map<HttpMethod,String> restMethods = new HashMap<HttpMethod,String>();
		if (operationTypeName.getLocalPart().equals("runConcurrent")){
			restMethods.put(HttpMethod.GET, "runConcurrent");
		} else {
			restMethods.put(HttpMethod.GET, "");
		}
		return restMethods;
	}
}